const pkg = require('./package.json');
/** ServerConfig */
// const config = {
//     debug: false,
//     host: '127.0.0.1',
//     port: 8569,
//     name: 'obj2image',
//     version: pkg.version,
// }
const cos_config = {
    AppId: "125xxxxxx",
    SecretId: "AKIDPpRDzbw1c8Xxxxxxxxxxxxxxxxxx",
    SecretKey: "gEbnoeMspdIm4Bxxxxxxxxxxxxxxxxxxx",
    Bucket: "xxxxxx-1258501264",
    Region: "ap-guangzhou"
}
/** Filelog */
const fs = require('fs');
const errorLogfile = fs.createWriteStream(__dirname + '/logs/error.log', { flags: 'a', encoding: null, mode: 0777 });
/** MysqlClient */
const db_config = require('./config/db_config');
const DB = require('./libs/DB');
const db_test = new DB(db_config.db_test_config);
/** RedisClient */
const redis_config = require('./config/redis_config');
const RedisClient = require('./libs/RedisClient');
const redis_test = new RedisClient(redis_config.redis_test_config);

// module.exports.config = config;
module.exports.db_test = db_test;
module.exports.redis_test = redis_test;
module.exports.cos_config = cos_config;
module.exports.errorLogfile = errorLogfile;

